import request from "@/utils/request";

// 查询列表
export function listTransactionType(query) {
  return request({
    url: "/system/contract/transactionType/list",
    method: "get",
    params: query,
  });
}
//新增交易类型
export function addTransactionType(data) {
  return request({
    url: "/system/contract/transactionType",
    method: "post",
    data,
  });
}
//查看交易类型详情
export function queryTransactionType(id) {
  return request({
    url: "/system/contract/transactionType/" + id,
    method: "get",
  });
}
//修改交易类型
export function editTransactionType(data) {
  return request({
    url: "/system/contract/transactionType",
    method: "put",
    data,
  });
}
//删除
export function delTransactionType(id) {
  return request({
    url: "/system/contract/transactionType/" + id,
    method: "delete",
  });
}
